﻿/*---------------------------------------------------------------- 
// author：zhanghaijun
// 时间：2017/10/17
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using translate;

namespace Utility
{
    public static class Tools
    {
        public static List<string> languageSymbol = new List<string>();
        public static List<string> codeLanguageSymbol = new List<string>();
        public static string language = "";
        public static bool HasLanguage(this string str,int selectLanguage)
        {
            language = codeLanguageSymbol[selectLanguage];           
            return Regex.IsMatch(str, language);
        }
    }
}
